<template>
	<div >
		<top-nenu></top-nenu>
		<transition name="fade" mode="out-in">
			<router-view></router-view>
		</transition>
	</div>
</template>

<script>
	import TopNenu from './common/TopNenu'
	import jwtToken from './helpers/jwt'
    export default {
         created(){
             if(jwtToken.getToken()){
                 this.$store.dispatch('setAuthUser')

             }

         },
	    components:{
            TopNenu
	    },
        mounted() {
            console.log('Component mounted.')
        }
    }
</script>
